﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ProjectSheduleAnalyst
{
    public partial class AddChangeClassroomForm : Form
    {
        private DB_Access dba = new DB_Access();
        public List<string> idlist = new List<string>();
        public AddChangeClassroomForm()
        {
            InitializeComponent();

            DataTable tbl_classroomtypes = dba.FillClassType();
            ClassTypeComboBox.ValueMember = "Name";
            ClassTypeComboBox.DisplayMember = "ClassType";
            ClassTypeComboBox.DataSource = tbl_classroomtypes;

            //dataGridView1.DataSource = tbl_classroomtypes;
            
            for (int row = 0; row < tbl_classroomtypes.Rows.Count; row++)
            {
                idlist.Add(tbl_classroomtypes.Rows[row][0].ToString());
            }

            //var m = idlist[1];
        }

        private void CloseAdChCLASSbtn_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void AddChangeClassroomForm_Load(object sender, EventArgs e)
        {

        }
    }
}
